package com.hl.service;

import com.hl.mapper.CertificateMapper;
import com.hl.pojo.Certificate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CertificateServiceImpl implements CertificateService{
    @Autowired
    public CertificateMapper certificateMapper;

    @Override
    public Integer add(Certificate certificate) {
        return certificateMapper.add(certificate);
    }

    @Override
    public Integer del(Certificate certificate) {
        return certificateMapper.del(certificate);
    }

    @Override
    public List<Certificate> findByConsultant(Certificate certificate) {
        return certificateMapper.findByConsultant(certificate);
    }

    @Override
    public List<Certificate> findById(Certificate certificate) {
        return certificateMapper.findById(certificate);
    }
}
